<?php
if(!($_POST["usr"]=="admin"&&$_POST["pwd"]=="sudo"))header("location:index.php?q=1");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<link type="text/css" href="jquery-ui-1.8.1.custom.css" rel="stylesheet" />
<script language=javascript src="jquery.js"></script>
<script language=javascript src="jquery-ui-1.8.1.js"></script>
<script language="javascript" src="tambahan.js"></script>
<title>MOS - Marsud WebOS</title>
<script language="javascript">
$(document).ready(function(){
	$("#contextmenu").hide();
	$("#selesai").hide();
	$("#isistart").hide();
	aku=1;
	start();
	formatTime();
	$('#dcalc').dialog({
		autoOpen: false,
		width: 300,
		buttons: {
		"Close": function() {
			$(this).dialog("close");
			$(this).dialog("close"); 
			}
		}
	});
	$("#calc").click(function(){
		start();
		$("#dcalc").dialog('open');
	});
	$('#dabout').dialog({
		autoOpen: false,
		width: 600,
		buttons: {
			"CLICK!": function() { 
				$(this).dialog("close"); 
			}
		}
	});
	$("#about").click(function(){
		start();
		$("#dabout").dialog('open');
	});
	$("#logoff").click(function(){
		var anu=confirm("Sure?");
		if(anu){
		$('#dabout').dialog("close");
		$("#dcalc").dialog("close");
		$("#selesai").show(1);
		$("#selesai").load("logoff.php");
		$("#isi").hide("slow");
		location.href="./";
		}
	});
	$("#start").click(function(){
		start();
		});
	$("#loading").hide();
	$("#finished").show();
	$("#aaa").click(function(){
		$("#isi").show("slow");
		$("#isi").show("slow");
		});
});
</script>
<style type="text/css">
	.demoHeaders { margin-top: 2em; }
	#dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
	#dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
	ul#icons {margin: 0; padding: 0;}
	ul#icons li {margin: 4px; position: relative; padding: 4px 0; cursor: pointer;  float: left; list-style: none;}
	ul#icons span.ui-icon {float: left; margin: 0 4px;}
	#taskbar { background:blue; top:0px; left:0px; right:0px; position:absolute;}
	.time {float:right;}
	#selesai {float:center;}
	#dcalc {font: 90% "Tahome", sans-serif;}
	#dabout {font: 100% "Tahoma", sans-serif;}
	#systray {font: 80% "Tahoma", sans-serif;}
	#calc {background:yellow;}
	#logoff {background:yellow;}
	#about {background:yellow;}
</style>
<body onselectstart="return false" oncontextmenu="contextmenu();return false" ondragstart="return false">
<div id="loading">
Loading...
</div>
<div id="finished">
Finished Loading...
<a href="#" id="aaa">Click Here</a>
</div>
<div id="isi">
<div id="taskbar">
<input title="Click here to begin!" type="button" id="start" value="START"><form id="systray" action="javascript:" style="float:right; color:white;" title="System Tray">System Tray
<b id="clock" title="Server Clock"></b>
</form></div>
<br>
<div id="isistart">
<div id="calc"><ul id="icons" class="ui-widget"><li class="ui-state-default" title="Calculator"><img src="calc.gif" border=0> Calculator</li></ul></a></div>
<br/>
<div id="dcalc" title="Calculator">
<FORM NAME="Calc" action="javascript:void(Calc.Input.value = eval(Calc.Input.value))">	
<INPUT TYPE="text"   NAME="Input" Size="16">
<br>
<INPUT TYPE="button" NAME="one"   VALUE="  1  " OnClick="Calc.Input.value += '1'">
<INPUT TYPE="button" NAME="two"   VALUE="  2  " OnCLick="Calc.Input.value += '2'">
<INPUT TYPE="button" NAME="three" VALUE="  3  " OnClick="Calc.Input.value += '3'">
<INPUT TYPE="button" NAME="plus"  VALUE="  +  " OnClick="Calc.Input.value += ' + '">
<br>
<INPUT TYPE="button" NAME="four"  VALUE="  4  " OnClick="Calc.Input.value += '4'">
<INPUT TYPE="button" NAME="five"  VALUE="  5  " OnCLick="Calc.Input.value += '5'">
<INPUT TYPE="button" NAME="six"   VALUE="  6  " OnClick="Calc.Input.value += '6'">
<INPUT TYPE="button" NAME="minus" VALUE="  -  " OnClick="Calc.Input.value += ' - '">
<br>
<INPUT TYPE="button" NAME="seven" VALUE="  7  " OnClick="Calc.Input.value += '7'">
<INPUT TYPE="button" NAME="eight" VALUE="  8  " OnCLick="Calc.Input.value += '8'">
<INPUT TYPE="button" NAME="nine"  VALUE="  9  " OnClick="Calc.Input.value += '9'">
<INPUT TYPE="button" NAME="times" VALUE="  x  " OnClick="Calc.Input.value += ' * '">
<br>
<INPUT TYPE="button" NAME="clear" VALUE="  c  " OnClick="Calc.Input.value = ''">
<INPUT TYPE="button" NAME="zero"  VALUE="  0  " OnClick="Calc.Input.value += '0'">
<INPUT TYPE="button" NAME="DoIt"  VALUE="  =  " OnClick="Calc.Input.value = eval(Calc.Input.value)">
<INPUT TYPE="button" NAME="div"   VALUE="  /  " OnClick="Calc.Input.value += ' / '">
<br>
<INPUT TYPE="button" NAME="Clear" VALUE="CLEAR" OnClick="Calc.Input.value=''">
</FORM>
</div>
<br/><br/>
<div id="logoff"><ul id="icons" class="ui-widget"><li class="ui-state-default" title="Logoff"><span class="ui-icon ui-icon-power"></span>Logoff</li></ul></div>
<br/><br/><br/>
<div id="about"><ul id="icons" class="ui-widget"><li class="ui-state-default" title=" About Me ">About Me</li></ul></a></div>
<br/><br/>
<div id="dabout" title="About Me">
	<b>Marsud WebOS Version 0.0.1 Beta 1</b><br/>
	<b>Made in INDONESIA by </b><br/>
	<b><font size="6">JULIUS PUTRA TANU SETIAJI</font></b><br/>
	<img src="about.jpg">

</div>
</div>
<div style="position:absolute; bottom:0px;">Elapsed time : <b id="elapsed">0</b><b> ms</b></div>
</div>
<div id="selesai">
</div>
</body>
</html>